package cn.scut.srp.mapper;

import cn.scut.srp.model.entity.Administrator;
import cn.scut.srp.model.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AdminMapper {
    @Select("""
            select admin_account,password,admin_name
            from machine_room.administrator where admin_account = #{admin_account} AND is_deleted = false
            """)
    @ResultType(Administrator.class)
    Administrator getAdminByAccount(String admin_account);
}